#include <iostream>
#include "adapter.h"

int main(int argv, char**argc)
{
    printf("************  test hello zc!!!   **************\n");
    /* add test code! */
    DataOperation *dao = (DataOperation*) new CipherAdapter();
	dao->setPassword("sunnyLiu");
	std::string ps = dao->getpassword();
	std::string es = dao->doEncrypt(6,ps);
	std::cout << "明文为："  << ps << std::endl;
	std::cout << "密文为："  << es << std::endl;
    return 0;
}